<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="DoMain.Procurement" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
 <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

<title>updateProcurement</title>
</head>
<body>
<% 
		Object msg=request.getAttribute("message");
		if(msg!=null){	
	%>
	
	<font color="red"><%=msg %></font>
	
	<%	} %>
	
	<%	
	String proNo=null;
	String proMan=null;
	String proMaterial=null;
	String proPay=null;
	
	Procurement procurement=(Procurement)request.getAttribute("procurement");	
	
	if(procurement!=null){
		
		proNo=procurement.getProNo()+"";
		proMan=procurement.getProMan();
		proMaterial=procurement.getProMaterial();
		proPay=procurement.getProPay();
		
	%>
	
	<% }else{
		proNo=request.getParameter("proNo");
		proMan=request.getParameter("proMan");
		proMaterial=request.getParameter("proMaterial");
		proPay=request.getParameter("proPay");
		
	}
	%>
	
	<form action="updateProcurement.Do" method="post">
	
	<input type="hidden" name="proNo" value="<%=proNo%>">

	

	<div class="input-group">
    <span class="col-sm-2 col-form-label">采购人:</span>
    </div>
	<input type="text" name="proMan" value="<%=proMan%>">
	<div class="input-group">
    <span class="col-sm-2 col-form-label">采购材料:</span>
    </div>
	<input type="text" name="proMaterial" value="<%=proMaterial%>">
	<div class="input-group">
    <span class="col-sm-2 col-form-label">费用:</span>
    </div>
	<input type="text" name="proPay" value="<%=proPay%>">
	<div class="input-group">
    <button type="submit" class="btn btn-primary">Submit</button>
    </div>
	</form>
</body>
</html>